package com.adk.backend.service;

import com.adk.backend.common.PageResult;
import com.adk.backend.entity.LxInventoryList;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import java.util.Map;

/**
 * 仓库管理服务接口
 */
public interface WarehouseService extends IService<LxInventoryList> {
    
    /**
     * 分页查询库存列表
     */
    PageResult<Map<String, Object>> getInventoryList(Map<String, Object> params);
    
    /**
     * 根据仓库ID查询库存
     */
    List<LxInventoryList> getInventoryByWhId(Long whId);
    
    /**
     * 入库操作
     */
    LxInventoryList inbound(LxInventoryList inventory);
    
    /**
     * 出库操作
     */
    boolean outbound(Long inventoryId, Integer qty);
    
    /**
     * 库存调拨
     */
    boolean transfer(Long fromWhId, Long toWhId, List<Map<String, Object>> transferList);
}

